<%@ page import="photobox.account.User" %>
<g:render template="../home/header" ></g:render>

<!--主体-->
<div class="wid_1200 mTo_20">
    <div class="f_l">
        <div class="left_blk mBo_20 load_blk_ying">
            <div class="user_blk"><g:if test="${session.userId}">
                <div class="user_head"><!--<div class="user_head"><img src="../${user?.photoImage}" alt="头像"></div>-->
                    <g:if test="${photobox.account.User.get(session.userId)?.photoImage}">
                        <img src="../${User.findById(session.userId)?.photoImage}"  alt="头像" />
                    </g:if>
                    <g:else>
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown"><img src="${resource(dir: '/assets/img', file: 'headp_140.jpg')}" alt="photobox" class="userPic"></a>
                    </g:else>
                </div>
            </g:if></div>
            <!--nav-->
            <div class="nav_left bor4" style=" height:108px;">
                <ul class="">
                    <li><g:link controller="member" action="browserHistory"><span class=" tubiao4 tubiao4_1">&nbsp;</span>我浏览的作品</g:link></li>
                    <li><g:link controller="member" action="purchasedPhoto"><span class=" tubiao4 tubiao4_2">&nbsp;</span>我购买的作品</g:link></li>
                </ul>
            </div>
            <!--/nav-->
        </div>
        <!--/用户简介-->
        <div class="left_blk pBo_20">
            <div class="sJiao"><div class="jiao1"></div></div>
            <div class="user_jianj">
                <p>${User.findById(session.userId)?.presentation}</p>
            </div>
        </div>
        <!--/用户简介-->
        <div class="kong_100 clear"></div>
    </div>


    <!--blk3-->
    <div class="blk3 f_r load_blk_ying load1">
        <div class="crumbs mLe_20">
            <span>个人信息</span><em class="tubiao2">&nbsp;</em><span>我的积分</span>
        </div>
        <div class="blk3_1 pLe_20">
            <h4 class="zp_xxzp1 mTo_20" style="font-size: 16px; color: #202020;">当前积分：<span class="nav_title" style="color: red;">${User.get(session.userId)?.totalPoints}</span></h4>
        </div>

        <div class="kong_20"></div><div class="kong_20"></div>

        <!---->
        <div class="blk3_1 mTo_20">
            <div class="table_qu">
                <table class="table1" width="100%">
                    <thead>
                    <tr>
                        <th width="15%">时间</th>
                        <th width="20%">作品状态</th>
                        <th width="10%">积分</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td>2013-09-11  19：36</td>
                        <td>购买作品</td>
                        <td class="orange">+10</td>
                    </tr>
                    <tr>
                        <td>2013-09-11  19：36</td>
                        <td>上传作品</td>
                        <td class="orange">+10</td>
                    </tr>
                    <tr>
                        <td>2013-09-11  19：36</td>
                        <td>购买作品</td>
                        <td class="orange">+10</td>
                    </tr>
                    </tbody>
                </table>
                <div class="anli_pic mBo_30" style=" border: 0;">
                    <div style="color: #202020; line-height: 30px;">积分规则介绍：</div>
                    <p style="color: #555;">每上传一张图积一分，每成交一张10分</p>
                    <p style="color: #555;">购买一张10分</p>
                </div>
            </div>
        </div>
        <!--/-->
        %{--<div class="bottomBor"></div>--}%%{--遮住底部阴影--}%
    </div>
    <!--/blk3-->


</div>
<!--/主体-->

<g:render template="../home/footer" ></g:render>


%{--

<!--blk3-->
<div class="blk3 f_r">
    <!--用户信息-->
    <div class="blk3_1">
        <h4 class="nav_title">当前积分：${User.get(session.userId)?.totalPoints}</h4>

    </div>
    <!--/用户信息-->

    <div class="kong_20"></div><div class="kong_20"></div>




</div>
<!--/blk3-->--}%
